﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MongoDB;
using MongoDB.Bson;

namespace MvcDemo.Move.Models.Passport
{
    public class MongoBaseEntity
    {
        public ObjectId Id
        {
            get;
            set;
        }
        //public Oid Id
        //{
        //    get;
        //    set;
        //}
    }

    public class ActiveUserEntity : MongoBaseEntity
    {
        private System.Guid _guidID;
        /// <summary>
        /// 
        /// </summary> 
        public System.Guid GuidID
        {
            get { return _guidID; }
            set { _guidID = value; }
        }

        private int _userID;
        /// <summary>
        /// 
        /// </summary> 
        public int UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        private System.DateTime _lastActivityDate;
        /// <summary>
        /// 
        /// </summary> 
        public System.DateTime LastActivityDate
        {
            get { return _lastActivityDate; }
            set { _lastActivityDate = value; }
        }

        private System.DateTime _createDate;
        /// <summary>
        /// 
        /// </summary> 
        public System.DateTime CreateDate
        {
            get { return _createDate; }
            set { _createDate = value; }
        }

        private long _ip;
        /// <summary>
        /// 
        /// </summary> 
        public long Ip
        {
            get { return _ip; }
            set { _ip = value; }
        }

        private bool _isAnonymous;
        /// <summary>
        /// 
        /// </summary> 
        public bool IsAnonymous
        {
            get { return _isAnonymous; }
            set { _isAnonymous = value; }
        }

        public int WebSiteId
        {
            get;
            set;
        }

    }
}